<script setup>
	import { storeToRefs } from 'pinia'
	import { useSearchStore } from '@/stores/modules/search'
	import { useCityStore } from '@/stores/modules/city'

	const searchStore = useSearchStore()
	const { searchData } = storeToRefs(searchStore)

	const cityStore = useCityStore()
	const { currentCity } = storeToRefs(cityStore)
</script>

<template>
	<div class="search">
		<h2>开始时间:{{ $route.query.startDate }}</h2>
		<h2>结束时间:{{ $route.query.endDate }}</h2>
		<h2>位置:{{ currentCity.cityName }}</h2>
		<h2>搜索词:{{ searchData }}</h2>
	</div>
</template>

<style lang="scss" scoped></style>
